"""
简化的日志管理器 - 临时解决方案
"""

import logging
from typing import Dict, Any

def get_logger(name: str) -> logging.Logger:
    """获取日志记录器"""
    return logging.getLogger(name)

def get_performance_logger(name: str) -> logging.Logger:
    """获取性能日志记录器"""
    return logging.getLogger(f"{name}.performance")

class StructuredLogger:
    """结构化日志记录器"""
    def __init__(self, name: str):
        self.logger = get_logger(name)

class PerformanceLogger:
    """性能日志记录器"""
    def __init__(self, name: str):
        self.logger = get_performance_logger(name)

def configure_logging(config: Dict[str, Any]):
    """配置日志系统"""
    level = config.get('level', 'INFO')
    logging.basicConfig(
        level=getattr(logging, level),
        format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
    )
